package com.javahu.xiuxian.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user") // 数据库表名
public class User {

    @TableId(type = IdType.AUTO) // 自增主键
    private Long id;

    @TableField(value = "user_name")
    private String username;

    @TableField(value = "level")
    private Integer level;
}
